import http from '@/utils/http'

//添加Exam
export async function addExamApi(param){
    return http.post("/tea/Exam/save",param)
}

//tea获取ExamList
export async function getExamListApi(param){
    return http.get("/tea/Exam/list",param)
}

//批量删除
export async function delExamByIdsApi(param){
    return http.post("/tea/Exam/deleteByIds",param)
}

//tea获取批改过的ExamList
export async function getExamListForStatisticsApi(param){
    return http.get("/tea/Exam/statistics/list",param)
}

//获取测试信息用于时间线
export async function getExamListForTimeLineApi(param){
    return http.post("/tea/Exam/timeLine/list",param)
}


///////////////////////////以下为stu/////////////////////

//stu获取获取ExamList
export async function getExamListForStuApi(param){
    return http.post("/stu/Exam/list",param)
}

//获取测验的数据信息 用于头部
export async function findByExamIdForStuApi(param){
    return http.get("/stu/Exam/findById",param)
}